package cn.edu.scau.edu.zhanpeilin.comprehension;
	
import javafx.application.Application;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import cn.edu.scau.cmi.zhanpeilin.abstractFactory.factory.PolicyAbstractFactoryClient;
import cn.edu.scau.cmi.zhanpeilin.singleton.MultipletonClient;
import cn.edu.scau.cmi.zhanpeilin.adapter.AdapterClient;
import cn.edu.scau.cmi.zhanpeilin.client.SingletonClient;
import cn.edu.scau.cmi.zhanpeilin.composite.consistent.ConsistentClient;
import cn.edu.scau.cmi.zhanpeilin.composite.safe.SafeClient;
import cn.edu.scau.cmi.zhanpeilin.factory.FactoryClient;
import cn.edu.scau.cmi.zhanpeilin.simpleFactory.SimpleFactoryClient;



public class ClientGUI extends Application {
	@Override
	public void start(Stage primaryStage) {
		try {
		   
			Parent root = FXMLLoader.load(getClass().getResource("cn.edu.scau.edu.zhanpeilin.comprehension.GUI.fxml"));
			
			Scene scene = new Scene(root);
			primaryStage.setScene(scene);
			primaryStage.setResizable(false);
			primaryStage.setTitle("综合性实验");
			primaryStage.show();
		} catch(Exception e) {
			e.printStackTrace();
		}
	}
	
	public static void main(String[] args) {
		launch(args);
	}
	 @FXML
	    void show1() throws Exception {
	    	SingletonClient s1 = new SingletonClient();
	    	Stage s = new Stage();
	    	s1.start(s);

	    }

	    @FXML
	    void show2() throws Exception {
	    	MultipletonClient s2 = new MultipletonClient();
	    	Stage s = new Stage();
	    	s2.start(s);
	    }

	    @FXML
	    void show3() throws Exception {
	    	SimpleFactoryClient s3 = new SimpleFactoryClient();
	    	Stage s = new Stage();
	    	s3.start(s);

	    }

	    @FXML
	    void show4() throws IOException {
	    	FactoryClient s4 = new FactoryClient();
	    	Stage s = new Stage();
	    	s4.start(s);

	    }

	    @FXML
	    void show5() throws IOException {
	    	ConsistentClient s5 = new ConsistentClient();
	    	Stage s = new Stage();
	    	s5.start(s);

	    }

	    @FXML
	    void show6() throws IOException {
	    	SafeClient s6 = new SafeClient();
	    	Stage s = new Stage();
	    	s6.start(s);

	    }

	    @FXML
	    void show7() throws IOException {
	    	AdapterClient s7 = new AdapterClient();
	    	Stage s = new Stage();
	    	s7.start(s);

	    }
	    
	    @FXML
	    void show8() throws IOException {
	    	PolicyAbstractFactoryClient s8 = new PolicyAbstractFactoryClient();
	    	Stage s = new Stage();
	    	s8.start(s);

	    }
	}
}
